<?php if(!class_exists('raintpl')){exit;}?><?php $tpl = new RainTPL;$tpl_dir_temp = self::$tpl_dir;$tpl->assign( $this->var );$tpl->draw( dirname("header") . ( substr("header",-1,1) != "/" ? "/" : "" ) . basename("header") );?>
<?php $tpl = new RainTPL;$tpl_dir_temp = self::$tpl_dir;$tpl->assign( $this->var );$tpl->draw( dirname("navigator") . ( substr("navigator",-1,1) != "/" ? "/" : "" ) . basename("navigator") );?>

<form action = '<?php echo $action;?>' method = 'post' enctype='multipart/form-data' class = 'form' id = "form">
	<ul>
	<?php $counter1=-1; if( isset($row) && is_array($row) && sizeof($row) ) foreach( $row as $key1 => $value1 ){ $counter1++; ?>
		<?php if( $value1["type"] == 'hidden' ){ ?>
			<?php echo $value1["form"];?>
		<?php }else{ ?>
		<li class = 'node'>
				<div class = 'flag'><?php echo $value1["flag"];?></div><label for='<?php echo $value1["key"];?>' class = 'label'><?php echo $value1["title"];?> : </label> 
			<?php echo $value1["form"];?>
			<span class = 'desc'><?php echo $value1["desc"];?></span>
		</li>
		<?php } ?>
		<?php echo $value1["hidden"];?>
		<?php echo $value1["js"];?>
	<?php } ?>
		<li>
			<input type = 'submit' value = 'Submit' class = 'submit'>
		</li>
	</ul>
</form>

<script language = "javascript">
	$(document).ready(function() {
		$("form").validationEngine();
	});
</script>

<?php $tpl = new RainTPL;$tpl_dir_temp = self::$tpl_dir;$tpl->assign( $this->var );$tpl->draw( dirname("footer") . ( substr("footer",-1,1) != "/" ? "/" : "" ) . basename("footer") );?>